package com.ccubee.data.transfer.transfer.type.impl;

import ch.qos.logback.core.util.TimeUtil;
import com.ccubee.data.transfer.event.ColumnData;
import com.ccubee.data.transfer.transfer.type.IType;
import com.ccubee.data.transfer.types.ColumnType;
import lombok.SneakyThrows;
import org.springframework.stereotype.Component;

import java.sql.ResultSet;

/**
 * 月
 *
 * @Author ycf
 * @Date 2022/11/16 21:38
 * @Version 1.0
 */
@Component
public class TypeMonth implements IType {
    @Override
    public ColumnType type() {
        return ColumnType.MONTH;
    }

    @SneakyThrows
    @Override
    public Object apply(ColumnData columnData, ResultSet resultSet) {
//        return TimeUtil.date2string(TimeUtil.parseLocalDateTime(value(columnData.getColumValueName(), resultSet)), FinalConfigParam.DATETIME_FORMAT_YYYY_MM);
        return null;
    }
}
